import { ElMessage, ElNotification } from 'element-plus'

export default {
  success(message) {
    ElMessage.success(message)
  },
  warning(message) {
    ElMessage.warning(message)
  },
  error(message) {
    ElMessage.error(message)
  },
  info(message) {
    ElMessage.info(message)
  },
  notify(title, message, type = 'success') {
    ElNotification({
      title,
      message,
      type,
      duration: 3000
    })
  }
}
